//
//  AppController.h
//  Networking
//
//  Created by Christoph Eßer on 11/25/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "ServerThreadController.h"
#import "ClientThreadController.h"
#import "ClientMessaging.h"
#import "ServerMessaging.h"


@interface AppController : NSWindowController<ClientMessaging,ServerMessaging> {
@private
    ServerThreadController *stc;
    ClientThreadController *ctc;
    
    NSInteger serverPort;
    NSButton *sendMsgToClientClick;
}
- (IBAction)startServerClick:(id)sender;
- (IBAction)connectClientClick:(id)sender;
- (IBAction)sendMsgToServerClick:(id)sender;
- (IBAction)stopServerClick:(id)sender;
- (IBAction)sendMsgToClientClick:(id)sender;
- (IBAction)disconnectClientClick:(id)sender;
@end
